<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="qry_user_page_list" method="get">
    <div>
        查询<select name="field_name">
        <option th:value="user_code">代码</option>
        <option th:value="user_name">姓名</option>
        <option th:value="telephone">电话</option>
    </select>
        <input type="text" maxlength="11" name="qry_content" th:value="${qry_content}"/>
        <input type="hidden" th:name="start_page" th:value="${start_page}" />
        <input type="hidden" th:value="${page_size}" th:name="page_size"/>
        <input type="submit" th:value="搜索"/>
    </div>
</form>
<table>
    <tr>
        <td>代码</td>
        <td>姓名</td>
        <td>移动电话</td>
        <td>专业</td>
        <td>操作</td>
    </tr>
    <tr th:each="u, State: ${user_list}">
        <td th:text="${u.user_code}"></td>
        <td th:text="${u.user_name}"></td>
        <td th:text="${u.telephone}"></td>
        <td th:text="${u.pro_name}"></td>
        <td><a th:href="@{show_edit_user(user_code=${u.user_code})}">修改</a>
            <a th:href="@{delete_user(user_code=${u.user_code})}">删除</a> </td>
    </tr>
</table>
<div>
    <a th:href="@{add_user}">添加用户</a>
</div>
    <div><a th:href="@{qry_user_page_list(field_name=${field_name},
                        qry_content=${qry_content},
                        start_page=${start_page-1},
                        page_size=${page_size})}">上一页</a></div>
<div><a th:href="@{qry_user_page_list(field_name=${field_name},
                        qry_content=${qry_content},
                        start_page=${start_page+1},
                        page_size=${page_size})}">下一页</a></div>
</body>
</html>